package day05;

public class Account {
	private int account;
	private double balance;

	public Account(int account) {
		this.account = account;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	

	public int getAccount() {
		return account;
	}

	public void setAccount(int account) {
		this.account = account;
	}

	//存钱
	public void savaMoney(double atm) {
		balance += atm;
	}
	
	public double getMoney(double atm) {
	//取钱
		return balance-=atm;
		
	}
	
}
